package cn.getech.data.development.api;

import cn.getech.data.development.dto.CodeTableInfoDto;
import cn.getech.data.development.entity.TableInfo;
import cn.getech.data.intelligence.common.utils.R;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName TableInfoApi
 * @Description TODO
 * @Author Getech
 * @Date 2020/12/23 10:46
 */

public interface TableInfoApi {

    @RequestMapping(value = "/api/dataBdp/tableInfo/dropTables",method = RequestMethod.GET)
    void dropTables(@RequestParam("tableIds") String tableIds);

    @RequestMapping(value = "/api/dataBdp/tableInfo/deleteHiveTable",method = RequestMethod.GET)
    R deleteHiveTable(@RequestParam("tableName") String tableName);

    @RequestMapping(value = "/api/dataBdp/tableInfo/save",method = RequestMethod.POST)
    R save(@RequestBody TableInfo tableInfo);

    @RequestMapping(value = "/api/dataBdp/tableInfo/insert",method = RequestMethod.POST)
    R insert(@RequestBody CodeTableInfoDto codeTableInfoDto);


}
